<html>
<head><meta charset="utf-8"><title>New lint (declaring an uncallable function) (#85520) · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/New.20lint.20(declaring.20an.20uncallable.20function).20(.2385520).html">New lint (declaring an uncallable function) (#85520)</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="244202217"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/New%20lint%20%28declaring%20an%20uncallable%20function%29%20%28%2385520%29/near/244202217" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/New.20lint.20(declaring.20an.20uncallable.20function).20(.2385520).html#244202217">(Jun 28 2021 at 20:45)</a>:</h4>
<p>Do new lints need a compiler (or lang??) FCP?</p>



<a name="244205129"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/New%20lint%20%28declaring%20an%20uncallable%20function%29%20%28%2385520%29/near/244205129" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/New.20lint.20(declaring.20an.20uncallable.20function).20(.2385520).html#244205129">(Jun 28 2021 at 21:11)</a>:</h4>
<p>The general policy we've used in the past is a compiler team MCP and then a lang team FCP on the implementation PR (giving them a heads up during the MCP is also a good idea).</p>



<a name="244212746"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/New%20lint%20%28declaring%20an%20uncallable%20function%29%20%28%2385520%29/near/244212746" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/New.20lint.20(declaring.20an.20uncallable.20function).20(.2385520).html#244212746">(Jun 28 2021 at 22:30)</a>:</h4>
<p>The cost/benefit ratio is too high for this lint, IMO.<br>
There are numerous ways to define something useless (with the uselesness being obvious on any use attempt).<br>
Why highlighting this case specifically and add a bunch of code to support? Is code like this written accidentally and commonly enough?</p>



<a name="244212905"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/New%20lint%20%28declaring%20an%20uncallable%20function%29%20%28%2385520%29/near/244212905" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Vadim Petrochenkov <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/New.20lint.20(declaring.20an.20uncallable.20function).20(.2385520).html#244212905">(Jun 28 2021 at 22:32)</a>:</h4>
<p>I would be significantly more useful to push for <a href="https://github.com/rust-lang/rust/issues/86176">#86176</a> instead.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>